import {SimplePagination} from "../../../utils/util.tsx";

export type Data = {
    key: string;
    id: string,                                             // 流程 ID
    createId: string, createBy: string, createTime: number, // 创建时间
    instanceState: number, instanceStateName: string,
    duration: number,                                       // 持续时间
    endTime: number,
    variable: string
}

export type State = {
    data: Data[],
    states: { key: number, value: number, label: string }[],
    pagination: SimplePagination,
    loading: boolean,

    optionsOfCreateBy: { value: string }[]
    createId: string | undefined
}

export type Props = {
    // userId: string | undefined,
    embedded: boolean,
}
